package com.zabra.zl.ui.index_fragment.deal.contract;

import com.zabra.zl.base.BaseView;
import com.zabra.zl.data.AllocationManageBean;

import retrofit2.Call;

public interface DealFragmentContract {
    interface Model {
        Call<AllocationManageBean> getData(String bpStatus, String bpType, String currentPage, String itemsPerPage);
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onSuccess(AllocationManageBean bean);

        void onSuccessFresh(AllocationManageBean bean);

        void onSuccessLoadMore(AllocationManageBean bean);
    }

    interface Presenter {
        void getData(String bpStatus, String bpType, String currentPage, String itemsPerPage);

        void getDataFresh(String bpStatus, String bpType, String currentPage, String itemsPerPage);

        void getDataLoadMore(String bpStatus, String bpType, String currentPage, String itemsPerPage);
    }
}
